import ins from './request';

export const getdata = (tikuname: any, fenlei: any) => {
  return ins({
    url: `/data?tikuname=${tikuname}&fenlei=${fenlei}`,
  });
};

export const del = (id: any) => {
  return ins({
    url: `/del?id=${id}`,
  });
};
export const add = (data: any) => {
  return ins({
    url: '/add',
    data: { ...data },
    method: 'post',
  });
};
export const delmany = (ids: any) => {
  return ins({
    url: `/delmany?ids=${ids}`,
    method: 'get',
  });
};
export const num = () => {
  return ins({
    url: '/num',
  });
};
export const ass = (fenlei: any) => {
  return ins({
    url: `/ass?fenlei=${fenlei}`,
  });
};
